package com.cjl.food.pojos;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import io.swagger.annotations.ApiParam;
import lombok.Data;
import lombok.Getter;
import lombok.Setter;

/**
 * @author cjl
 * @version v1.0
 * @description TODO
 * @createTime 2023/2/14 12:57
 */
@Data
@ApiModel(value="Food",description = "菜品pojo")
@TableName("food")
public class Food {


    @ApiModelProperty("主键，唯一标识")
    @TableId(type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty("菜名")
    @TableField("name")
    private String name;


    @ApiModelProperty("价格")
    @TableField("price")
    private double price;

    @ApiModelProperty("菜品描述")
    @TableField("description")
    private String description;

    @ApiModelProperty("状态：0-停止售卖 1-上架 2-缺货")
    @TableField("status")
    private Short status;
}
